package simple04;

import simple04.builder.Builder;

//建造者模式
public class Simple {
    public static void main(String[] args) {
        Builder builder = new HoilDayBuilder();
        builder.buildApple(100);
        builder.buildBanana(20);
        builder.buildOrange(200);
        FruitMeal fruitMeal = builder.getFruitMeal();

        int cost = fruitMeal.getTotalPrice();
        System.out.println("本次消费" + cost);
    }
}
